<template>

	<up-toast ref="uToastRef"></up-toast>
</template>

<script setup lang="ts">
	import { ref } from 'vue';
	const uToastRef = ref(null)
	// 开启弹窗
	function open(type : string, message : string) {
		uToastRef.value.show({
			icon: false,
			type,
			message
		})
	}

	defineExpose({ open })
</script>

<style scoped lang="scss">
	.message-tip {
		z-index: 99999;
	}

	.uni-popup-message {
		text-align: center;
	}
</style>